const wxbookhelper = {
  startDownloadOrReadWithSource (e) {
    console.log('begin read');
    console.log(e);
    window.location.href = "Press_wap/page/read.html?book_Id="+e.book_Id;
  }
}
 
const meta = {
  wxbookhelper: 
  [
    {
      name: 'startDownloadOrReadWithSource',
      args: ['function']
    }
  ]
}

export default {
  init (Weex) {
    // 注册这个模块，最后一个参数是模块的元信息.
    Weex.registerApiModule('wxbookhelper', wxbookhelper, meta)
  }
}
